package git_model

import "time"

type Repo struct {
	FullName    string `json:"full_name"`
	Name        string `json:"name"`
	Owner       User   `json:"owner"`
	Path        string `json:"path"`
	Description string `json:"description"`
	HtmlUrl     string `json:"html_url"`
	CloneUrl    string `json:"clone_url"`
}

type User struct {
	Login     string `json:"login"`
	AvatarUrl string `json:"avatar_url"`
	HtmlUrl   string `json:"html_url"`
}

type Branch struct {
	Name          string `json:"name"`
	CommittedDate string `json:"committed_date"`
}

func CommittedDate(t *time.Time) string {
	return t.Format("2006-01-02 15:04:05")
}
